home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / locupl14.zip / LOCUPL.DOC < prev    next >
Text File  |  1993-04-21  |  12KB  |  237 lines

  1.                       PCBoard LOCal UPLoad Utility v1.4
  2.                           Written by James R. Davis
  3.                    (C) Copyright 1993 - All Rights Reserved
  4.  
  5. This program was written shortly after I setup my first PCBoard.  I found that
  6. I was wasting alot of time and energy going through the rigorous process of
  7. locally uploading files into my directories, through PCBFiler.  That started
  8. me to combing the BBSes for a program that would upload files locally for me.
  9. I only found two programs; ADD2BBS written by some guy in France, and ADDFILES
  10. written by someone who calls himself Doc Debug.  Neither one of these programs
  11. did what I wanted.  For one thing, if I wanted to upload something to another
  12. directory, I had to go into their CFG files and change the directory
  13. physically.  Since I'm lazy as hell, that soon wore thin on my nerves and I
  14. decided to go ahead and do something about it.  So up spawned LOCUPL...
  15.  
  16. It's simple to use and easy to understand.  But before I get into it's
  17. operation, you needto have the following files somewhere in your path before
  18. even trying to run this program... yeah I know it's a pain, but most of you
  19. already have these programs (not to mention, if you don't like the archive
  20. format in the first place, you won't ever need to worry about having the
  21. program to begin with):
  22.  
  23.                     Ext   Program used
  24.                     ---   ------------
  25.                     ZIP   PKUNZIP version 1.10 or above
  26.                     PAK   PAK version 2.51 or above
  27.                     ARJ   ARJ version 2.39a beta or above
  28.                     ARC   ARC version 5.10 or above
  29.                     ZOO   ZOO version 2.1 or above
  30.                     LZH   LHARC version 1.13c or above
  31.  
  32. Now, if you know you'll never have ZOO files on your system, don't worry about
  33. not having the program in your your path.  No biggy.  Usually, all you'll ever
  34. need is PKUNZIP or ARJ (LHARC in some cases), but I programmed in support for
  35. all the others, so that everyone is happy.
  36.  
  37. If you wish to use virus scanning on your files before uploading them, the
  38. program will need to have SCAN.EXE by McAfee in your path.
  39.  
  40. Running the program is simple and easy.  Put LOCUPL somewhere in your path, so
  41. that no matter where you are, you'll be able to use it.  The syntax for
  42. running the program is as follows:
  43.  
  44.  LOCUPL /PCB=d:\path\[PCBOARD.DAT] [/CFG=d:\path\FILNAME.CFG] [updir] [switch]
  45.  
  46. The /PCB switch tells the program where to locate the PCBOARD.DAT file.  This
  47. switch can be bypassed by setting the PCBDAT environment variable to the drive
  48. and path of the PCBOARD.DAT file.  The uplddir is optional, this tells the
  49. program from what directory the files are to be uploaded from.  If it is not
  50. used, the current directory is the default.
  51.  
  52. The /CFG variable will tell the program where to find the .CFG file.  If you
  53. do not want to include this on the command line, you can set the environment
  54. variable LOCUPL to a drive/path and filename of a CFG file explained below,
  55. you can bypass all the questions given after file selection (eg: SET
  56. LOCUPL=C:\UTIL\LOCUPL.CFG).  The sample CFG file included may be used after
  57. modifying it for your system.
  58.  
  59. The contents of the CFG file should look something like this (without the
  60. comments at the end of end line!):
  61.  
  62. BBSNAME=The Programmer's Mega-Source! 'The name of your BBS
  63. MOVE=Yes                              'Move files=Yes, Copy files=No
  64. FILDATE=No                            'Use file's actual date?
  65. FILEDESC=Yes                          'Search archive for file desc?
  66. TEXTSEARCH=C:\UTIL\ALLFILES.TXT       'Use this file for text search, or =No
  67. MANUAL=Yes                            'Type in desc if not found?
  68. REPLACE=No                            'Replace files if exist?
  69. GIFSPEC=Yes                           'Insert gif specs in desc?
  70. UPLDBY=Yes                            'Insert "Uploaded by: SYSOP" in desc?
  71. ARCSPEC=Yes                           'Insert "Files: XX  New: XX-XX-XX..."?
  72. SCAN=Yes                              'Virus SCAN files?
  73. BAKUP=No                              'BAKup dir files before replacing files?
  74.  
  75. So if you don't want to have to type in the /PCB switch all the time, just set
  76. the environment variable in your AUTOEXEC.BAT file upon bootup, or if you
  77. don't want to waste a whole 11 bytes of environment space, use the /PCB
  78. switch.  To each his own.
  79.  
  80. Use the following command line switches to override anything you have set in
  81. the CFG file.  Using a + indicates you wish to turn that option on and a -
  82. indicates you wish to turn it off.  They are as listed below:
  83.  
  84.               /N = Use this switch if running on a remote terminal of a
  85.                    network.
  86.  
  87.        /MOV[+|-] = Move the files or copy them
  88.  
  89.        /FDT[+|-] = Use the file's actual date yes/no
  90.  
  91.        /FDS[+|-] = Look in a file for a description yes/no
  92.  
  93.     /SRH=txtfile = Use a text file to search where txtfile is the
  94.                    drive\path of filename to use, otherwise none used.
  95.  
  96.        /MAN[+|-] = Manually type in description yes/no
  97.  
  98.        /REP[+|-] = Replace files in dir file yes/no
  99.  
  100.        /GIF[+|-] = Insert GIF specs if found yes/no
  101.  
  102.        /UPL[+|-] = Insert 'Uploaded by: SYSOP' in description yes/no
  103.  
  104.        /ARC[+|-] = Insert archive specs in description yes/no
  105.  
  106.        /SCN[+|-] = Scan files for virus' yes/no
  107.  
  108.        /BAK[+|-] = BAKup dir files during desc replacing yes/no
  109.  
  110. Example:
  111.  
  112.   LOCUPL /SCN- /SRH- /MOV-
  113.  
  114. This will tell the program to turn off virus scanning, not to search through a
  115. text file for file descriptions, and to copy files instead of moving.
  116.  
  117. Let's say you have the set the replace files to no, the scanning on, and the
  118. rest default to the sample CFG file settings.  Here's what happens:
  119.  
  120. When the program is first envoked, it will read in all the directories found
  121. that are different (including all conference file directories) and find the
  122. ones that are different.  So, if you have so 500 conferences, but only 5 of
  123. those conferences have file directories, only those 5 will be shown to be
  124. selected from.
  125.  
  126. Next, when you choose the conference to upload to, you will be asked which
  127. directory you wish to upload to (right now if you've got more directories then
  128. can fit on the screen, they will scroll, that will be fixed later).  Choose
  129. the directory you wish to upload the files to.
  130.  
  131. After you've made that tremendous and difficult decision, you will be given a
  132. list of all the files that were found in the directory you specified on the
  133. command line (right now, only 105 files can be displayed, I didn't think that
  134. many of you would have THAT many files downloaded, but if demand is greater,
  135. it will be fixed later).  Tag the files you wish to upload with the SPACE BAR,
  136. and press RETURN to continue (you can also use T to tag or untag all the
  137. entries, or press ESC to abort the program completely.)
  138.  
  139. After you've made your file selection, you will be asked if you wish to move
  140. or copy the files, moving the files is the default.  Next, you will be asked
  141. if you wish to insert any desc files that are in the archives if they are
  142. found, into the description file (the two files this program supports at this
  143. time are FILE_ID.DIZ and DESC.SDI).  If you answer yes to this question, which
  144. happens to be the default, you will be asked if you want to type in a
  145. description of the file if a desc file is not found.  This can be handy.  If
  146. you answer no, a simple "No description given at this time." will be placed as
  147. the file's description.
  148.  
  149. Now, comes the fun part.  After you've completed the simple questions, what
  150. will occur is this; first the files you want to upload will be checked against
  151. the files that already appear in the dir file.  If there is a match, then the
  152. file is removed from the tagged file list.  Next, the file will be scanned for
  153. a virus before anything else takes place.  If a virus is found, it is skipped
  154. to the next file (NOTE: the file is not deleted, just in case another tpye of
  155. error occured like uncompleted download or the like).  Next what happens is
  156. this, the file is checked for a desc file, if one is found, it is placed in
  157. the dir file's description, if not, the program will ask you if you wish to
  158. see the contents of the file before typing a description (mind you, you've
  159. answered yes to the two questions in the previous paragraph).  Then you can
  160. add the description you want to the files description (the number of lines
  161. allowed is read from PCBOARD.DAT ahead of time, so don't worry about the file
  162. description getting out of control! <G>)
  163.  
  164.  
  165. FUTURE REVISIONS
  166. ----------------
  167.  
  168. I would appreciate any suggestions you may have to make this program more user
  169. friendly or whatever you may find you want added. Making everything windowed
  170. (suggested by Max Bernard), and a few other ideas that I've been thinking
  171. about, but for now, here's what I've got.
  172.  
  173.  
  174. ACKNOWLEDGEMENTS
  175. ----------------
  176. I would like to thank Max Bernard for his help and suggestions while writing
  177. this program.  Tom Southard for his in-depth bug reports while beta testing
  178. and his suggestions.  Erik Olsen for coming up with a few routines on the spur
  179. of the moment that made the program do what needed to be done.  Dave Navarro,
  180. Jr. for the inspiration and introduction to PowerBASIC.  And finally you for
  181. using this program.  THANKS to everyone that helped make this program
  182. possible.
  183.  
  184.  
  185. REGISTRATION
  186. ------------
  187. This program is ShareWARE meaning that it is not FREE.  If you use this
  188. program for more than 30 days you are required by law to either register it
  189. with the author, or delete it from your system.  The registration fee for this
  190. program is $25.00 and with that you will be able to unlock the ability to
  191. search through a text file for a file description (which comes in handy!)
  192. Read the instructions and rules for ordering this program in the file
  193. ORDER.FRM that comes with this program for further rules and regulations.
  194.  
  195.  
  196. I hope you find this program to be of use to you as it has been to me in my
  197. daily sysoping activities.  If you have any problems you can reach my board to
  198. leave me any comments about this program at (516) 737-4637.  Have fun
  199. everyone!
  200.  
  201.                        -=> James "The Garf!" Davis! <=-
  202.  
  203. History:
  204.  
  205.   1.4  - Final release version.  Fixed an error 9 that occured because of no
  206.          command line options.  Ready for the big time!
  207.  
  208.   1.3  - Final version before release.  Added virus scanning and dir file
  209.          bakup.  Added ability to set all the CFG file settings on the command
  210.          line through command line switches.
  211.  
  212.   1.2b - Fixed problem of adding a blank line to end of file description.
  213.          Took out revision directory... stupid oversight.
  214.  
  215.   1.2a - Fixed a looping problem that placed one line in the DIR file over and
  216.          over when you manually type in the description.
  217.  
  218.   1.2  - Fixed a few minor bugs, added CFG file to bypass questions.
  219.  
  220.   1.1k - Added a bunch of new features, Inserting GIF specs, "Uploaded by:
  221.          SYSOP" line, Archive specs, ability to make a config file so you
  222.          don't have to keep typing in all the choices (since they've grown
  223.          from a mere 4 questions to about 9) every time you run the program.
  224.          faster file loading, being able to detect bad archives, still
  225.          thinking about scanning, it may have to wait.  Added registration
  226.          code for shareware version... I think we're close to completion this
  227.          time out!  Any more suggestions?
  228.  
  229.   1.1j - Finally fixed the file picking routines.  Should be able to handle
  230.          up to 32k of files with scrolling activated.  Fixed problem with
  231.          not being able to type in descriptions if you choose not to load in
  232.          desc files or text file searching.
  233.  
  234.   1.1h - Fixed some minor bugs.  First alpha release.
  235.  
  236.   1.0  - Initial test release.
  237.